package com.hjh.thread.condition.condition2;

public class Condition2 {

    public static void main(String[] args) {
        ProducerRunnable pro1 = new ProducerRunnable();
        new Thread(pro1).start();
        ProducerRunnable pro2 = new ProducerRunnable();
        new Thread(pro2).start();
        ProducerRunnable pro3 = new ProducerRunnable();
        new Thread(pro3).start();

        ConsumRunnable consum1 = new ConsumRunnable();
        new Thread(consum1).start();

        ConsumRunnable consum2 = new ConsumRunnable();
        new Thread(consum2).start();

        ConsumRunnable consum3 = new ConsumRunnable();
        new Thread(consum3).start();



    }
}
